package o2o.config.redis;

import o2o.area.CityInfo;
import o2o.cache.area.CityMemory;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author :ld
 * @date :2021/6/7
 */
@RestController
@RequestMapping("demo")
public class Demo {
    @GetMapping("list")
    public List<CityInfo> list(){
        return CityMemory.getInstance().list(null, null);
    }
}
